home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_oth / forchek1 / makefile.old < prev    next >
Makefile  |  1991-10-28  |  2KB  |  85 lines

  1. # Unix version of Makefile for Fortran program checker
  2.  
  3. #    Copyright (C) 1991 by Robert K. Moniot.
  4. #    This program is free software.  Permission is granted to
  5. #    modify it and/or redistribute it, retaining this notice.
  6. #    No guarantees accompany this software.
  7.  
  8. # These definitions should be customized for your local conventions
  9. # if you want to do "make install" or "make uninstall"
  10. BINDIR  =       /usr/local/bin
  11. CP      =       /bin/cp
  12. MANDIR  =       /usr/local/man
  13.  
  14. # OPTIONS is used to define various characteristics.  Most commonly
  15. # needed ones are given below; uncomment whichever you like
  16. # See forchek.h for others, with their defaults and explanations.
  17.  
  18. #  To use the defaults for everything choose this:
  19. OPTIONS=
  20.  
  21. #  To make all table sizes 10x bigger than defaults uncomment this:
  22. #OPTIONS= -DLARGE_MACHINE
  23.  
  24. #  To prohibit underscores in variable names, inline comments
  25. #   starting with '!', INCLUDE, and the DO ... ENDDO loop forms:
  26. #OPTIONS= -DSTRICT_SYNTAX
  27.  
  28. # CFLAGS is used to define the operating system and options.
  29. # The _BSD flag is helpful for those compilers that recognize it.
  30. OPTIMIZE= -O
  31. CFLAGS= -DUNIX -D_BSD $(OPTIONS) $(OPTIMIZE)
  32.  
  33. YFLAGS= -d
  34.  
  35. OBJS= forchek.o forlex.o fortran.o \
  36. `prsymtab.o symtab.o symtab2.o
  37.  
  38.  
  39. forchek: $(OBJS)
  40. `$(CC) -o forchek $(OBJS) -lm
  41.  
  42. install:        forchek
  43. `$(CP) forchek $(BINDIR)
  44. `- strip $(BINDIR)/forchek
  45. `chmod 755 $(BINDIR)/forchek
  46. `$(CP) forchek.man $(MANDIR)/man1/forchek.1
  47. `chmod 744 $(MANDIR)/man1/forchek.1
  48.  
  49. uninstall:
  50. `$(RM) $(BINDIR)/forchek
  51. `$(RM) $(MANDIR)/man1/forchek.1
  52.  
  53. # N.B. tokdefs.h is copy of y.tab.h used to avoid remaking stuff when
  54. # grammar changes but not tokens.
  55.  
  56. forchek.o: forchek.h
  57.  
  58. forlex.o: forchek.h tokdefs.h symtab.h
  59.  
  60. fortran.o: forchek.h symtab.h fortran.c
  61.  
  62. prsymtab.o: forchek.h symtab.h
  63.  
  64. symtab.o: forchek.h iokeywds.h intrins.h symtab.h tokdefs.h
  65.  
  66. symtab2.o: forchek.h symtab.h tokdefs.h
  67.  
  68. check:
  69. `lint $(LINTFLAGS) forchek.c forlex.c \
  70. `        fortran.c prsymtab.c symtab.c symtab2.c -lm
  71.  
  72. RM = /bin/rm -f
  73. clean:
  74. `$(RM) \#* *~ core *.o
  75.  
  76. clobber:        clean
  77. `$(RM) forchek
  78.  
  79. # Acknowledgement: this makefile benefited from additions by
  80. # Nelson H.F. Beebe
  81. # Center for Scientific Computing
  82. # University of Utah
  83. # Internet: beebe@math.utah.edu
  84.  
  85.